<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CreateOrderRequest extends FormRequest
{
    use BaseRequestTrait;

    /**
     * @return array
     */
    public function rules()
    {
        return [
            'productSkuId' => 'bail|required',
            'addressId' => 'bail|required',
            'assignDate' => 'bail|required',
            'assignTime' => 'bail|required',
        ];
    }

    /**
     * @return array
     */
    public function messages()
    {
        return [
            'productSkuId.required' => 'SKU信息不能为空',
            'addressId.required' => '地址信息不能为空',
        ];
    }
}
